// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "GameEndWidget.generated.h"

/**
 * 
 */
UCLASS()
class MYPROJECT2_API UGameEndWidget : public UUserWidget
{
	GENERATED_BODY()
	
public:
	virtual void NativeConstruct() override;

	UPROPERTY(meta = (BindWidget))
	class UTextBlock* TotalScoreText;
	
	UPROPERTY(meta = (BindWidget))
	class UButton* RestartGameButton;

	UFUNCTION(BlueprintCallable, Category = "UI")
	void InitializeEndScreen(int32 TotalScore);

	UFUNCTION()
	void OnRestartButtonClicked();

private:
	void CleanUpAllUI();
};
